package com.zhupanlin.order.feign;

import com.zhupanlin.product.bean.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 描述信息：
 *
 * @author zhupanlin
 * @version 1.0
 * @date 2025/1/24 11:02
 */
@FeignClient(value = "weather-client", url = "http://localhost:9000")
public interface WeatherFeignClient {
    
    @GetMapping("/product/{productId}")
    Product getWeather(@PathVariable("productId") Long productId);
    
}